import 'package:flutter_test/flutter_test.dart';
import 'package:mobile_device_identifier/mobile_device_identifier.dart';
import 'package:mobile_device_identifier/mobile_device_identifier_platform_interface.dart';

class MockMobileDeviceIdentifierPlatform extends MobileDeviceIdentifierPlatform {
  @override
  Future<String?> getDeviceId() async {
    return 'mock-device-id';
  }
}

void main() {
  group('MobileDeviceIdentifier', () {
    late MobileDeviceIdentifier mobileDeviceIdentifier;

    setUp(() {
      mobileDeviceIdentifier = MobileDeviceIdentifier();
      MobileDeviceIdentifierPlatform.instance = MockMobileDeviceIdentifierPlatform();
    });

    test('getDeviceId should return a device ID', () async {
      // Act
      final deviceId = await mobileDeviceIdentifier.getDeviceId();

      // Assert
      expect(deviceId, 'mock-device-id');
    });
  });
}